package org.example.demo;

import javax.swing.*;
import java.awt.*;

public class SnakePanel extends JPanel {

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);

        this.setBackground(Color.BLACK);
        Resource.IMAGE_URL.paintIcon(this, g, 25, 11);
        g.fillRect(25, 75, 850, 600);
        Resource.SNAKE.paint(this, g);
        Resource.STT.paint(g);

    }

}
